init($dbserver,$dbname,$dbuser,$dbpass); // Start User Session session_start(); if (!isset($op)){ $op = "";} // Define Common Variable if (!isset($page)){ $page = "1";} if (!isset($msg)){ $msg = "";} if (!isset($uri)){ $uri = "";} if (!isset($uploaderror)){ $uploaderror = "";} // User Validation Support function authUser($email,$passwd){ global $db,$dbprefix; if(!empty($email) && !empty($passwd)){ $checkcookie = $db->getRowExtended($db->do_query("SELECT email, passwd FROM ".$dbprefix."_users WHERE email='".$email."' AND passwd='".$passwd."'")); return true; } else { return false;} } // User Validation Support function checkUser($db,$dbprefix,$username,$passwd){ $query = mysql_query("SELECT username,password FROM ".$dbprefix."_users WHERE username='".$username."' AND password='".md5($passwd)."'"); $numRows = mysql_num_rows($query); if ($numRows){ return true; } else { return false; } } function stripsearch($text){ $search = array('@<>@', '@]*?>.*?@siU', // Strip out javascript '@]*?>.*?@siU', // Strip style tags properly '@]*?>.*?@siU', // embed '@]*?>.*?@siU', // object '@@', // Strip multi-line comments including CDATA '@]*>*@' // html tags ); while($text != strip_tags($text)) { $text = preg_replace($search, '', $text); } return $text; } function limit_text($text,$limit) { // figure out the total length of the string if( strlen($text)>$limit ) { # cut the text $text = substr( $text,0,$limit ); # lose any incomplete word at the end $text = substr( $text,0,-(strlen(strrchr($text,' '))) ); } // return the processed string return $text."... "; } function shorten($string, $length) { // By default, an ellipsis will be appended to the end of the text. $suffix = '...'; // Convert 'smart' punctuation to 'dumb' punctuation, strip the HTML tags, // and convert all tabs and line-break characters to single spaces. $short_desc = trim(str_replace(array("\r","\n", "\t"), ' ', strip_tags($string))); // Cut the string to the requested length, and strip any extraneous spaces // from the beginning and end. $desc = trim(substr($short_desc, 0, $length)); // Find out what the last displayed character is in the shortened string $lastchar = substr($desc, -1, 1); // If the last character is a period, an exclamation point, or a question // mark, clear out the appended text. if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix=''; // Append the text. $desc .= $suffix; // Send the new description back to the page. return $desc; } function countVisit(){ // SET VISITOR COOKIE / Update Page Visits if not already a visitor // Count Starting Jan 2 2007: 50,553 if ($_COOKIE['visitor'] != "1"){ $db->do_query("UPDATE ".$dbprefix."_system_visits SET visits=visits+1"); setcookie ("visitor", "1", time()+3600,"/",".listbargains.com"); } } function genPass($min,$max){ // Random Password Generator $passwd=""; //to store generated password for($i=0;$i 97 && $num < 122)){ $passwd.=chr($num); }else if(($num > 65 && $num < 90)){ $passwd.=chr($num); }else if(($num >48 && $num < 57)){ $passwd.=chr($num); }else if($num==95){ $passwd.=chr($num); }else{ $i--; } } return $passwd; } function loginPanel($msg){ echo '

'.$msg.'' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '
Email:
Password:
 ' . '

'; } ?> ListBargins.com :) Quality lists for less!
ListBargains.com stands out from other data providers by offering High-Value Data Solutions with Individualized World-Class Customer Care. ListBargains.com’s Distinctive Marketing Databases feature unique, high-quality business and consumer leads with the freshest hotlines available on every list. We offer Fast and Friendly Service, Unique and Comprehensive Data Offerings, Out-of-the-Box Opportunities, and Stand Behind our Data to Make You the Hero. That is how we make list ordering FUN again.

ListBargains.com News


\n" . "".stripslashes(urldecode($data['title']))." " . "(".date("M j, Y",$data['date']).")\n" . "

".shorten(stripslashes(urldecode($data['body'])),"200") . "


" . "" . "
\n\n"; $num ++; } } else { echo "
\n" . "No News at this time.
\n"; } ?>
Client Testimonials


" . "".stripslashes(urldecode($data['t_company']))."" . "

".stripslashes(urldecode($data['t_body'])) . "

" . "
" . "- ".stripslashes(urldecode($data['t_client'])) . "
" . "".$data['t_website']."
" . "
"; $num ++; } } else { echo "
" . "No testimonials at this time.
"; } ?>


All at the touch of a button
Browse over 400 Datacards, Postal Lists, Email Services,
Texting 101, Data Processing, and News.